package com.westos.userauth.dao.mybatis;

import com.westos.userauth.domain.UserLogin;
import com.westos.userauth.domain.UserLoginSecurityQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
//王实 w

@Mapper
public interface UserLoginSecurityQuestionDAO {
    //修改用户登录的提示问题
    int updateSecurityQuestion(@Param("question") UserLoginSecurityQuestion question);


    //删除用户登录的安全提示问题
    int deleteSecurityQuestion(@Param("question")UserLoginSecurityQuestion question);

    //根据登录用户查找安全提示问题
    List<UserLoginSecurityQuestion> queryByUserLogin(UserLogin userLogin);

    //插入用户登录的安全提示问题(白伟)
    int insertSecurityQuestion(UserLoginSecurityQuestion question);

    //根据问题id查找安全提示问题
    UserLoginSecurityQuestion queryUserLoginSecurityQuestionById(String questionEnumId);
}
